package com.jkgh.test.system {
	
	import com.jkgh.remedium.RemediumSystem;
	import com.jkgh.remedium.objects.messages.RemediumInMessage;
	import com.jkgh.remedium.states.OrderAwaitingState;
	import com.jkgh.test.MainServerObject;
	
	public class TNHRemediumSystem extends RemediumSystem {
		
		public function TNHRemediumSystem(serverIP:String, onMainObjectReceived:Function) {
			super(serverIP, MainServerObject.createConsumingState(new RemediumInMessage(), function(result:MainServerObject):void {
				setState(new OrderAwaitingState());
				onMainObjectReceived(result);
			}));
		}
	}
}